import React from "react"

import {get_like_music_id} from "../../../../api/index"

import queryString from "query-string"

class LikeMusic_Tabs extends React.Component {
  constructor(props){
    super(props)
    this.state = {
      music_ids_arr:[],
      like_first_pic:""
    }
  }

  componentDidMount(){
    // console.log(this.props)
    // let qr = queryString.parse(this.props.location.search)
    // console.log(qr)
    get_like_music_id()
    .then(body=>body.json())
    .then(res=>{
      console.log(res);
        this.setState({
          music_ids_arr:res.ids,
      })
      console.log(this.state.music_ids_arr);

    })
    
  }

  render(){
    return (
      <div>
        <div>
          <img src="" alt=""/>
        </div>
      </div>
    )
  }
}

export default LikeMusic_Tabs